package czx.wt.system.pojo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: ChenZhiXiang
 * @Date: 2019/6/18 22:33
 * @Description: 角色实体类
 */
@TableName("sys_role")
@Alias("role")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="role",description = "角色对象")
public class Role implements Serializable {

    private static final long serialVersionUID = 5513737305014060344L;

    @TableId
    @ApiModelProperty(value="角色编码",example="1")
    private Integer roleId;

    @NotBlank(message = "角色名")
    @ApiModelProperty(value="角色名",example="突然")
    private String roleName;

    @ApiModelProperty(value="描述",example="**管理员")
    private String comments;

    @ApiModelProperty(value="创建时间",example="")
    private Date createTime;

    @ApiModelProperty(value="修改时间",example="")
    private Date updateTime;

}
